package com.czy.seed.mvc.home.entity;

import com.czy.seed.mvc.base.entity.IPrepare;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author wang
 * @date 20180222
 * 地址管理，商家地址、采购单位地址、采购办地址
 * */

@Table(name = "ADDRESS_MANAGER")
public class AddressManager  implements IPrepare {
    private static final long serialVersionUID = -5209970907865566510L;
    @Id
    private long id;
    // userId是指SYS user表中的ID
    private long userId;
    private int userType;
    private String address;
    private Date createTime;
    private long createBy;
    private Date updateTime;
    private long updateBy;
    private boolean ischeck;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(long createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(long updateBy) {
        this.updateBy = updateBy;
    }

    public boolean isIscheck() {
        return ischeck;
    }

    public void setIscheck(boolean ischeck) {
        this.ischeck = ischeck;
    }
}
